
/*
 * (C)opyright 2010, Alessandro Agosto. All rights reserved.
 * This file is part of the "pycoev" project.
 * To get more informations about the license read the LICENSE file.
 *
 * pyc_init.c function prototypes.
 */


#pragma once
#ifndef _PYC_INIT_H
#define _PYC_INIT_H


PyObject *Pyc_Init(PyObject *, PyObject *);
PyObject *Pyc_Deinit(void);


/*docstrings*/
PyDoc_STRVAR(Pyc_Init_Doc, "init(max_fds) -> Py_True on success"           CRLF
                           "Initializes the event library."                CRLF
                           "@params: a positional argument (integer) "
                           "representing the max # of file descriptors."   CRLF
                           "@return: Py_True on success, an exception on "
                           " failure."                                     CRLF
                           "This function must be called before others, "
                           "otherwise other functions will raise an exception");

PyDoc_STRVAR(Pyc_Deinit_Doc, "deinit() -> None"                            CRLF
                             "Deinitializes the event library."            CRLF
                             "@params: ----"                               CRLF
                             "@return: None"                               CRLF
                             "This should be the last call to free the "
                             "memory occupied by event-library objects.");


#endif /* _PYC_INIT_H */
